﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace SampleUsage
{
    internal class AddressSource : INotifyPropertyChanged
    {
        private string address;
        public string Address 
        {
            get 
            { 
                return address;
            } 
            set 
            {
                if (address != value)
                {
                    address = value;
                    NotifyPropertyChanged("Address");
                }
            } 
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(String info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }

    }
}
